package com.hutiao.snowhb.wechat.vo;

import org.jdom.Document;
import org.jdom.Element;

/**
 * 回复图片消息
 * @author subob
 *
 */
public class WxSendPicMsg extends WxSendMsg {
	
	private String mediaId;

	public String getMediaId() {
		return mediaId;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}
	
	public WxSendPicMsg(WxSendMsg msg,String mediaId) {
		super(msg);
		setMsgType("image");
		this.mediaId = mediaId;
	}
	
	@Override
	public Document toDocument() {
		Document doc = super.toDocument();
		Element image = createElement(doc.getRootElement(), "Image", "");
		createCdataElement(image, "MediaId", getMediaId());
		return doc;
	}

}
